class UrlMappings {

	static mappings = {
		"/$controller/$action?/$id?"{ constraints { // apply constraints here
			} }
		"/users/$userId/stats" {
			controller = "user"
			action = "stat"
			}
		"/"(controller:"todo",action:"index")
		"404"(view:'/404')
		"500"(view:'/error')
	}
}
